import type { MemberUserLoginInfo, MemberUserUpdateByLogin } from '#/member/memberUser'
import { http } from '@/utils/http/index'

/**
 * 获取会员用户登录信息
 */
export function getMemberUserLoginInfoApi() {
  return http.request<MemberUserLoginInfo>('GET', '/app-api/system/memberUser/memberUserByLoginInfo')
}

/**
 * 修改会员用户登录信息
 * @param data  MemberUserUpdateByLogin
 */
export function updateByLoginMemberUserApi(data: MemberUserUpdateByLogin) {
  return http.request<void>('POST', '/app-api/system/memberUser/updateByLoginInfo', data)
}
